package com.tanhua.domain.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "voice")
// 映射声音的实体类
public class Voice implements Serializable {

    public static final long serialVersionUID = 9527L;

    private ObjectId id; // 主键id
    private Long userId; // 发布声音的id

    private String voiceUrl; // 音频文件,url
    private Long created;  // 发布时间

}
